<?php

class Users_Form_Role extends Zend_Form {

	public function init() {
		
		$this->setMethod('post');
		
		$role = $this->createElement('text', 'role');
		$role->setLabel(_('Role:'));
		$role->setAttrib('maxlength', '255');
		
		$description = $this->createElement('textarea', 'description');
		$description->setAttrib('cols', 100);
		$description->setAttrib('rows', 16);
		$description->setLabel(_('Description:'));
		
		$submit = $this->createElement('submit', 'submit');
		$submit->setLabel(_('Submit'));
		
		$cancel = $this->createElement('button', 'cancel');
		$cancel->setLabel(_('Cancel'));
		$cancel->setAttrib('onclick', 'history.back(-1)');
		
		$this->addElements(array($role, $description, $submit, $cancel));
	}
}
